﻿using System.Collections.Generic;
using System.Runtime.Serialization;

namespace SecurityService.DataTransferObjects
{
    /// <summary>
    /// RoleDto class
    /// </summary>
    [DataContract(Name = "RoleDto", Namespace = "http://www.yourcompany.com/types/")]
    public class RoleDto
    {
        /// <summary>
        /// Gets or sets the role identifier.
        /// </summary>
        /// <value>
        /// The role identifier.
        /// </value>
        [DataMember]
        public int RoleId { get; set; }

        /// <summary>
        /// Gets or sets the name of the role.
        /// </summary>
        /// <value>
        /// The name of the role.
        /// </value>
        [DataMember]
        public string RoleName { get; set; }

        /// <summary>
        /// Gets or sets the titlte.
        /// </summary>
        /// <value>
        /// The titlte.
        /// </value>
        [DataMember]
        public string Title { get; set; }

        /// <summary>
        /// Gets or sets the description.
        /// </summary>
        /// <value>
        /// The description.
        /// </value>
        [DataMember]
        public string Description { get; set; }

        /// <summary>
        /// Gets or sets a value indicating whether [is active].
        /// </summary>
        /// <value>
        ///   <c>true</c> if [is active]; otherwise, <c>false</c>.
        /// </value>
        [DataMember]
        public bool IsActive { get; set; }

        /// <summary>
        /// Gets or sets the role in sites.
        /// </summary>
        /// <value>
        /// The role in sites.
        /// </value>
        [DataMember]
        public List<RoleInSiteDto> RoleInSites { get; set; }
    }
}
